I have an object like
{ "status": "success", "auth": { "code": "23123213", "name": "qwerty asdfgh" } }
I want to convert it to point notation (one level), for example:
{ "status": "success", "auth.code": "23123213", "auth.name": "qwerty asdfgh" }
I am currently converting an object manually using fields, but I think there needs to be a more general and general way for this. Whether there is a?
Note. There are several examples showing the return path, but I could not find the exact method.
Note 2: I want it to be used with an action binding with my server.
javascript syntax
vardars
source share