Adapted to use LitJson and work with the latest ThinkGear Connector JSON.