Skip to Content

Read JSON response

Hi Experts!

I try to read a JSON result in my app, but I don´t get the value.

Here is my coding so far:

This is the result I get:

I´ll store this value "visible: true" somehow in order to use later. I don´t get it. Any ideas how to do it?

01.jpg (64.3 kB)
2.jpg (23.3 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    Nov 12, 2016 at 01:13 PM

    var oJSONModel=sap.ui.getCore().getModel();

    var visible=oJSONModel.getProperty("/d/results/0/visible");

    hopefully it works

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 12, 2016 at 07:23 AM

    don't know what u are talking.....

    where is the code to read and store?

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 12, 2016 at 09:09 AM

    This is my questions, I don´t know how to read and store it.

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 12, 2016 at 01:17 PM

    One little change:

    var visible = oJSONModel.getProperty("/results/0/visible");

    Thanks a lot!!

    Add comment
    10|10000 characters needed characters exceeded