Rudimentary JSON parsing