Skip to content

Commit 625fc1c

Browse files
authored
JIRA WDT-486 - Make separate case for boolean text, no longer auto-converted with newer Jython (#749)
1 parent 8a5eced commit 625fc1c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/src/main/python/wlsdeploy/json/json_translator.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,10 @@ def _format_json_value(value):
233233
"""
234234
import java.lang.StringBuilder as StringBuilder
235235
builder = StringBuilder()
236-
if type(value) == bool or (isinstance(value, types.StringTypes) and (value == 'true' or value == 'false')):
236+
if type(value) == bool:
237237
builder.append(JBoolean.toString(value))
238+
elif isinstance(value, types.StringTypes) and (value == 'true' or value == 'false'):
239+
builder.append(value)
238240
elif isinstance(value, types.StringTypes):
239241
builder.append('"').append(_escape_text(value.strip())).append('"')
240242
else:

0 commit comments

Comments
 (0)