api java objectification

Asked 1 years ago, Updated 1 years ago, 63 views

[a, b, c, [d, f, g]] There's an api that prints these values, but is this type of api also json?

I'd like to ask you this question because I want to make API a Java object like this.

java api parsing

2022-09-22 14:07

3 Answers

No, it's not. JSON is a data object consisting of keys and values.

There are many places where you can check JSON data online, such as this site . If you are not sure, enter it yourself and check it out.

Typical libraries that parse JSON to Java objects are jackson and gson.


2022-09-22 14:07

So how do you make it an object?


2022-09-22 14:07

I think you should decide how you want to process the data. I think you can learn the basic format of JSON and process it accordingly. For example, stomach and You can convert the same format as below.

{ 
    "key1": [a, b, c], 
    "key2": [d, e, f]
}

They're going to, obeujekteuwa to

then you said on the library.


2022-09-22 14:07

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.