Fizer Khan
Fizer Khan

Reputation: 92725

Store JSONObject in Google Datastore using Java

My application deals with JSON metadata which can have any fields, not a defined structure. I want to store incoming JSON into google datastore as JSON objects.

I tried to save org.json.JSONObject, but it does not work.

How to store JSON objects inside Google Datastore?

Upvotes: 1

Views: 1357

Answers (1)

Zig Mandel
Zig Mandel

Reputation: 19835

Since you wont be able to query the json fields, just store it as a text string. Beware of entity maximum size.

Upvotes: 2

Related Questions