cleaned up json parsing
first whack at a schema