Codeunit 5460 "Json"
System Application · System.Text.Json
Across versions
- BC23not present
- BC24added
- BC25unchanged
- BC261 procedures added
- BC27-30unchanged
Neighbourhood 4 connected objects and pages
System Application · System.Text.Json · BC24-30 · source at ea08af5e · facts from BC29
Properties
| Property | Value |
|---|---|
| Access | Public |
Procedures
InitializeCollection(JSONString: Text): Initializes the JSON array with the specified JSON string.InitializeObject(JSONString: Text): Initializes the JSON object with the specified JSON string.GetCollectionCount(): Integer: Returns the number of elements in the JSON array.GetCollectionAsText(): Text+ BC26: Returns the JSON array in text format.GetCollectionAsText(Indentation: Boolean): Text+ BC26: Returns the JSON array in text format.GetCollection(): JsonArray: Returns the JSON array.GetObjectAsText(): Text: Returns the JSON object in text format.GetObject(): JsonObject: Returns the JSON object.GetObjectFromCollectionByIndex(Index: Integer; var JsonObjectTxt: Text): Boolean: Returns the JSON object at the specified index in the JSON array.GetValueAndSetToRecFieldNo(RecordRef: RecordRef; PropertyPath: Text; FieldNo: Integer): Boolean: Gets the value at the specified property path in the JSON object and sets it to the specified record field.GetPropertyValueByName(PropertyName: Text; var Value: Variant): Boolean: Gets the value at the specified property name in the JSON object.GetStringPropertyValueByName(PropertyName: Text; var Value: Text): Boolean: Gets the text value at the specified property name in the JSON object.GetEnumPropertyValueFromJObjectByName(PropertyName: Text; var Value: Option): Boolean: Gets the option value at the specified property name in the JSON object.GetBoolPropertyValueFromJObjectByName(PropertyName: Text; var Value: Boolean): Boolean: Gets the boolean value at the specified property name in the JSON object.GetDecimalPropertyValueFromJObjectByName(PropertyName: Text; var Value: Decimal): Boolean: Gets the decimal value at the specified property name in the JSON object.GetIntegerPropertyValueFromJObjectByName(PropertyName: Text; var Value: Integer): Boolean: Gets the integer value at the specified property name in the JSON object.GetGuidPropertyValueFromJObjectByName(PropertyName: Text; var Value: Guid): Boolean: Gets the Guid value at the specified property name in the JSON object.ReplaceOrAddJPropertyInJObject(PropertyName: Text; Value: Variant): Boolean: Replace or add the specified property in the JSON object.AddJObjectToCollection(Value: Text): Boolean: Add the the JSON object to the JSON array.RemoveJObjectFromCollection(Index: Integer): Boolean: Remove the JSON object at the specified index in the JSON array.ReplaceJObjectInCollection(Index: Integer; Value: Text): Boolean: Replace the specified JSON object in the JSON array.
Calls
From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an Object::"Name" argument. Interface dispatch and calls through events are not counted, so the list is not complete.
- Codeunit 5461 “Json Impl.” (20 calls:
AddJObjectToCollection → AddJObjectToCollection,GetBoolPropertyValueFromJObjectByName → GetBoolPropertyValueFromJObjectByName,GetCollection → GetCollection, …)
Called by
- Codeunit 324 “No. Series Copilot Impl.” (20 calls:
CheckIfCompletionMeetAllRequirements → GetCollectionCount,CheckIfCompletionMeetAllRequirements → GetObjectFromCollectionByIndex,CheckIfCompletionMeetAllRequirements → InitializeCollection, …) - Codeunit 8333 “VS Code Integration Impl.” (3 calls:
GetDependenciesAsSerializedJsonArray → AddJObjectToCollection,GetDependenciesAsSerializedJsonArray → GetCollectionAsText,GetDependenciesAsSerializedJsonArray → InitializeCollection) - Codeunit 4314 “Agent Task Log Entry” (2 calls:
FormatJsonTextForRichContent → GetCollectionAsText,FormatJsonTextForRichContent → InitializeCollection)
Ask your agent
Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: bcatlas_resolve_node(object_type: "codeunit", object_name: "Json"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.