How in groovy (java) automatically find out the json field type and return values from json, replacing null with empty space?
问题 The question is still relevant! In my task, json comes to my input, which I do not know in advance. I need to collect all json field types into "types" and return all values using reader.outputLines . Now the list of json field types is formed like this: def types = list.find (). Values () *. GetClass () *. SimpleName But I am faced with a problem when the same field in the first json block is null, and in the second the integer and the type is defined as null, and not as Integer. How to