joelittlejohn / jsonschema2pojo

Generate Java types from JSON or JSON Schema and annotate those types for data-binding with Jackson, Gson, etc
http://www.jsonschema2pojo.org
Apache License 2.0
6.24k stars 1.66k forks source link

This JSON document can not be converted!!! #869

Closed vzool closed 6 years ago

vzool commented 6 years ago

Hi, I tried to convert this JSON document into POJO using this website:

{
    "id": "K9qJL",
    "created_at": "2018-05-30 10:50:34",
    "visit_record_id": "mjeRL",
    "complaint_what3words": "qwe.asd.zxc",
    "is_assigned": "null",
    "house_id": "null",
    "house_name": "null",
    "house_latitude": 25.4564465,
    "house_longitude": 24.454188,
    "house_what3words": "null",
    "district_id": "NLEqL",
    "district_name": "district_name",
    "owner_id": "AmzD9",
    "owner_name": "owner_name",
    "owner_mobile": "058044111554",
    "owner_email": "null"
}

The JSON is valid. But, I don't know why it didn't generate that.

Could anyone help me out?

Thanks

joelittlejohn commented 6 years ago

Did you choose Source Type: JSON?

joelittlejohn commented 6 years ago

Works fine for me. I think you chose the wrong Source Type.

vzool commented 6 years ago

Yeah, sure I did. I choose "JSON Schema" all the time, hahaha Thanks for your help