kentaro.suzuki Posted September 11, 2018 Share Posted September 11, 2018 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 subDatasetI 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 More sharing options...
narcism Posted September 11, 2018 Share Posted September 11, 2018 What exactly are you trying to achieve? Link to comment Share on other sites More sharing options...
narcism Posted September 12, 2018 Share Posted September 12, 2018 This post has a complete working sample similar to your case: https://community.jaspersoft.com/questions/1047486/how-fill-table-subdataset-json Link to comment Share on other sites More sharing options...
kentaro.suzuki Posted September 12, 2018 Author Share Posted September 12, 2018 Thank you! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now