Skip to main content

HS.FHIRServer.Util.JsonHelper

class HS.FHIRServer.Util.JsonHelper

Method Inventory

Methods

classmethod FromJSON(pJsonStreamOrString) as %DynamicObject
The error text thrown by %DynamicObject %FromJSON can be obscure. This method adds some text to the error from %FromJSON, to indicate the cause (malformed JSON), and throws a FHIR-JSON-specific error code along with the enhanced error text.
classmethod ToJSONStream(pJson As %DynamicAbstractObject, ByRef pOutputStream, pIndentString As %String = "", pLineTerminator As %String = "")
classmethod ToJSONString(pJson As %DynamicAbstractObject, pIndentString As %String = "", pLineTerminator As %String = "") as %String
FeedbackOpens in a new tab