This is suggestion assigning json object into a structure ?
for example the following json object
m_str = [
{
"RS": "OK",
"DT": "UgAnjCLtit1de24at5ML2jamXsinVN5++cwIaFMTO"
}
]
st_Json is structure
RS is string
DT is string
end
m_st is st_json = m_str
I can access the values m_st.RS or m_st.DT
This method remind me of clarion where you can assign string into structure and clarion auto filled /divide by the length
in nodejs, json object is auto parsed by javascript interpreter .
I can access req.body['RS']
for example the following json object
m_str = [
{
"RS": "OK",
"DT": "UgAnjCLtit1de24at5ML2jamXsinVN5++cwIaFMTO"
}
]
st_Json is structure
RS is string
DT is string
end
m_st is st_json = m_str
I can access the values m_st.RS or m_st.DT
This method remind me of clarion where you can assign string into structure and clarion auto filled /divide by the length
in nodejs, json object is auto parsed by javascript interpreter .
I can access req.body['RS']