condensed repeat json code