/ SetJpath: set and parse the json path. */ /
| 95 | /* SetJpath: set and parse the json path. */ |
| 96 | /*********************************************************************************/ |
| 97 | my_bool JSNX::SetJpath(PGLOBAL g, char *path, my_bool jb) |
| 98 | { |
| 99 | // Check Value was allocated |
| 100 | if (!Value) |
| 101 | { |
| 102 | snprintf(g->Message, sizeof(g->Message), MSG(NO_MEMORY)); |
| 103 | return true; |
| 104 | } |
| 105 | |
| 106 | Value->SetNullable(true); |
| 107 | Jpath = path; |
| 108 | |
| 109 | // Parse the json path |
| 110 | Parsed = false; |
| 111 | Nod = 0; |
| 112 | Jb = jb; |
| 113 | return ParseJpath(g); |
| 114 | } // end of SetJpath |
| 115 | |
| 116 | /*********************************************************************************/ |
| 117 | /* Analyse array processing options. */ |
no test coverage detected