On 10/30/2009 05:28 PM, Jamie Lokier wrote:
By the way, since you've already invented a non-standard JSON extension, which is the single quotes, why not go a step further and permit the quotes to be omitted for simple tokens?#define QERR_DEV_NFOUND "{ code: 404, name: %s}" Much neater, IMHO.
While I agree about the neatness, this is quite a slippery slope. If the macro tricks are going to confine the JSON templates in a header file, I don't see the need to extend the JSON parser further.
Paolo