Returns a JSON string representation of a map value.
| 499 | |
| 500 | // Returns a JSON string representation of a map value. |
| 501 | SIValue AR_TOJSON(SIValue *argv, int argc, void *private_data) { |
| 502 | if(SIValue_IsNull(argv[0])) return SI_NullVal(); |
| 503 | char *buf = JsonEncoder_SIValue(argv[0]); |
| 504 | return SI_TransferStringVal(buf); |
| 505 | } |
| 506 | |
| 507 | // returns the original string with leading and trailing whitespace removed. |
| 508 | SIValue AR_TRIM(SIValue *argv, int argc, void *private_data) { |
nothing calls this directly
no test coverage detected