simplified api json code