Create JSON without Braces

I need to create JSON formatted as:

“id”:12

JSONSetElement is returning:

{“id”:12}

Is there a way to generate this JSON without braces?

My script currently uses the Base Elements JSON_Encode function to create JSON without braces. I want to replace the BE JSON function with a native FM function. Unfortunately, the native FM function adds the braces.

How bout

Let ([
	~json = JSONSetElement ( "{}" ; ... ) ;
	~inner = Middle ( ~json ; 2 ; length ( ~json ) - 2 )
];
	~inner
)
3 Likes