codeunitAL Developmentofficial - Microsoftderived - from the source, no model text

Codeunit 5460 "Json"

System Application · System.Text.Json

Across versions

  1. BC23not present
  2. BC24added
  3. BC25unchanged
  4. BC261 procedures added
  5. BC27-30unchanged

Neighbourhood 4 connected objects and pages

Codeunit 324 "No. Series Copilot Impl." (calls, 20 links)No. Series Copilot Impl.Codeunit 5461 "Json Impl." (calls, 20 links)Json Impl.Codeunit 8333 "VS Code Integration Impl." (calls, 3 links)VS Code Integration Impl.Codeunit 4314 "Agent Task Log Entry" (calls, 2 links)Agent Task Log Entry

Open in the neighbourhood explorer

One hop out, from the extracted relations and call graph. Up to 40 shown; the sections below list them all.

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.

Evidence 1 sources