added classes for JSONObject serialization
updated example