Trying to write JSON parser with lot of help from answers