Puru
Puru

Reputation: 9083

Is it an efficient way to serialize JSON data in Java?

I don't know whether this question makes sense or not. I have huge amount of JSON data with me. I am getting that data from Server to the Client side.

Is it good idea to serialize the JSON object in server side ?

Upvotes: 0

Views: 492

Answers (2)

Quentin
Quentin

Reputation: 943579

I have huge amount of JSON data with me.

Is it good idea to serialize the JSON object in server side ?

No. JSON is already serialized, that's the point of the format.

If you have non-JSON data that you want to deliver to the client then, unless it is a string, you have to serialize it so that it is in a transmittable format.

Upvotes: 1

Dogbert
Dogbert

Reputation: 222188

Check out GSON

Related

Upvotes: 1

Related Questions