Notifications

14 views

Description

Overview


JSON should be all data, comments of the form '//…' or '/*…*/' are not allowed.

[Subject]


If we use '//' or '/* */' to comment out Additional options which is JSON formain Service Portal Widget Instance((c1.jpg) ). The Page cannot be loaded.

The symptoms are listed as follows.

1. The pages contain the Widget Instance are stuck in loading.

2. Error messages can be found in localhost logs.

org.json.JSONException: JSONObject["value"] not found.: java.lang.RuntimeException: org.json.JSONException: JSONObject["value"] not found.: com.glide.rest.handler.impl.ServiceHandlerImpl.handleInvocationTargetException(ServiceHandlerImpl.java:79)
com.glide.rest.handler.impl.ServiceHandlerImpl.invokeService(ServiceHandlerImpl.java:50)
com.glide.rest.processors.RESTAPIProcessor.process(RESTAPIProcessor.java:271)
com.glide.processors.AProcessor.runProcessor(AProcessor.java:483)
com.glide.processors.AProcessor.processTransaction(AProcessor.java:205)
com.glide.processors.ProcessorRegistry.process0(ProcessorRegistry.java:178)
com.glide.processors.ProcessorRegistry.process(ProcessorRegistry.java:167)
com.glide.ui.GlideServletTransaction.process(GlideServletTransaction.java:31)
com.glide.sys.Transaction.run(Transaction.java:2038)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
java.lang.Thread.run(Thread.java:748)

 

Additional Information


Article from Stack Overflow

https://stackoverflow.com/questions/244777/can-comments-be-used-in-json

Article Information

Last Updated:2019-08-02 20:51:01
Published:2019-02-27
c1.jpg