I'm using Oracle Rest Data Services (ORDS to communicate with some customers using the JSON format.
When I create a JSON\_OBJECT and try to stringfy it, some numbers are not compliant to the ECMA-404 standard.

PLSQL Example:

```
PROCEDURE TEST_PROC(myJson OUT CLOB) IS
    myNumber NUMBER;
BEGIN
   jsonObject := new JSON_OBJECT_T();
   myNumber := 0.05;
   jsonObject.put("myNumberOutput", myNumber);
   myJson   := jsonObject.to_clob();
END PROCEDURE;

```

The final value of myJson (which is what I'm sending to my customer) is:

```
{"myNumberOutput" : .05}

```

What I expected:

```
{"myNumberOutput" : 0.05}

```

The weird part is that if instead of 0.05 I set myNumber with 0.5, the result I get from Oracle is:

```
{"myNumberOutput" : 0.5}

```

just like what I expected.

Does anyone have any ideia what I shoud do to get the json string with the number format and a leading zero when the number is less than 0.1 ?