My Oracle Support Banner

json_object Create invalid JSON for decimal numbers (Doc ID 2798672.1)

Last updated on SEPTEMBER 05, 2021

Applies to:

Oracle Database - Enterprise Edition - Version 12.2.0.1 and later
Information in this document applies to any platform.

Symptoms

On : 12.2.0.1 version,

ACTUAL BEHAVIOR
---------------
json_object create invalid JSON for decimal numbers

When  using json_object  get an invalid JSON for decimal numbers.

for example:

SELECT(json_object ('key1' value 0.03)) from dual

returns:
{"key1":.03}

expected:
{"key1":0.03}

(there should be a leading zero in the value)

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.