added example for more generic json format