Duda: delete JSON tree context after format

This patchs makes to release the resources used on the JSON callback after format the output string.

Signed-off-by: Eduardo Silva <eduardo@monkey.io>