This should complete the JSON parser. All that's left is to put it into action and hope it works.