Common JSON parser