getting json correct