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

Empty jar, no preview #268

Closed johnjohndoe closed 10 years ago

johnjohndoe commented 10 years ago

For some reason the following JSON does not produce any output:

{
    "result": {
        "total": 208,
        "offset": 0,
        "count": 208,
        "features": [
            {
                "id": 1,
                "type": "pegel_mv",
                "properties": {
                    "gbk_lawa": "9663510000",
                    "ezg_fl_d": "1176666118",
                    "pg_code": "04709.0",
                    "ezg_fl_dp": "97.95",
                    "ezg_fl": "1201291820",
                    "gwk_gn": "Peene",
                    "pg_typ": "f",
                    "re": "33361067.69",
                    "pg_nr": "9660009",
                    "ho": "5968670.16",
                    "gwk_lawa": "9660000000",
                    "pg_name": "Aalbude"
                },
                "geo": {
                    "point": {
                        "lat": 53.84792755362008,
                        "lon": 12.88804341782738
                    }
                }
            },
            {
                "id": 277,
                "type": "pegel_mv",
                "properties": {
                    "ezg_fl_d": "139439782",
                    "see_gn": "Großer Labussee",
                    "ezg_fl": "175652039",
                    "gwk_gn": "Havel",
                    "re": "33363843.30",
                    "ho": "5909508.12",
                    "gwk_lawa": "5800000000",
                    "gbk_lawa": "5811193900",
                    "pg_code": "58038.0",
                    "ezg_fl_dp": "79.38",
                    "pg_typ": "s",
                    "pg_nr": "0",
                    "pg_name": "Zwenzow UP"
                },
                "geo": {
                    "point": {
                        "lat": 53.31722466066411,
                        "lon": 12.956016891488375
                    }
                }
            }
        ]
    },
    "error": null
}
joelittlejohn commented 10 years ago

Have you set Source type: JSON? It seems to work for me.

johnjohndoe commented 10 years ago

Stupid me. Forgot this. Maybe a notification for the user could be helpful if the result is empty.