E
E
Erling2016-04-02 14:35:03
PHP
Erling, 2016-04-02 14:35:03

Generation of navigation elements, etc. from JSON?

There is a web service written in Java that sends everything to json for almost all navigation elements (not counting the content itself), after which this stream needs to be collected and put in its place according to the template.
Tell me how it's done? What should you pay attention to and where to start?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
stasov1, 2016-04-02
@Erling

There is a function JSON.parse(); Let's say data comes in, you create a variable var x = JSON.parse(data); then you work with the x variable as with a regular js object - x.name, x.age and so on.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question