Better json parsing

Signed-off-by: Shea Levy <shea@shealevy.com>