added json helper to example