Jump to content
Changes to the Jaspersoft community edition download ×

How to read a certain json information{in this case the only the Player Function} in a custom variable?


kentaro.suzuki

Recommended Posts

How to read the following json file, The problem is I can't load it properly.

{ This following Json file has : 1.· An array of objects ("player") and two other object ("day", "place") }

======== json_Sample ============

{ "day" : "2014/7/25",

"place" : "Tokyo",

"player" : [

{ "name" : "Yamada", "id" : "1", "age" : "20" },

{ "name" : "Tanaka", "id" : "2", "age" : "19" },

{ "name" : "Kato", "id" : "3", "age" : "22" } ] }

=================================

I want to read all the data in the json file, But when i try to read them as following.
Reading "day" and "place" as Field, 
"player" with subDataset

I am able to read that the Field data"day","place"
 But can't able to read the subDataset "player"
 as the data was empty.
 

 

Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...