Buy @red pepper{2}.
versus
<recipe> Buy <ingredient amount="2">red pepper</ingredient>.</recipe>
For the latter, standard tools like xmlwf or any good Web browsers built-in XML viewer already exist and work right away.
In any case, double maintenance of JSON and human-readable text will eventually lead to inconsistencies.
Buy @red pepper{2}.
versus
<recipe> Buy <ingredient amount="2">red pepper</ingredient>.</recipe>
For the latter, standard tools like xmlwf or any good Web browsers built-in XML viewer already exist and work right away.
In any case, double maintenance of JSON and human-readable text will eventually lead to inconsistencies.