# Map JSONs Utilities to help load and parse json files related to {ref}`Map`. - - - ## ObjectsJSON.GetFile ```pascal function TMapObjectJSON.GetFile(chunk: TPoint; plane: Integer): TJSONItem; ``` Internal method to return a objects JSON file associated with the specified `chunk` and `plane`. - - - ## ObjectsJSON.GetJSON ```pascal function TMapObjectJSON.GetJSON(chunks: TPointArray; plane: Integer): TJSONItem; ``` Internal method to return all objects JSON data associated with the specified `chunks` and `plane` merged into a single `TJSONItem`. - - - ## ObjectsJSON.Load ```pascal function TMapObjectJSON.Load(regions: array of TRSMapRegion): TJSONItem; ``` Internal method to load all objects JSON data associated into the `TMapObjectJSON` with the specified `regions` merged into a single `TJSONItem`. - - - ## ObjectsJSON.Get ```pascal function TMapObjectJSON.Get(name: String; amount: Integer = 0): TJSONItem; ``` Returns a `TJSONItem` JSON array of a map object that matches the specified `name`. By default you get all objects that match the `name`, however, if you want you can specify how many you want through `amount`. - - - ## ObjectsJSON.GetByID ```pascal function TMapObjectJSON.GetByID(id: Integer): TJSONItem; ``` Returns a `TJSONItem` JSON object of a map object that matches the specified `id`. - - - ## ObjectsJSON.GetByAction ```pascal function TMapObjectJSON.GetByAction(action: String; amount: Integer = 0): TJSONItem; ``` Returns a `TJSONItem` JSON array of a map object that has an action that matches the specified `action`. By default you get all objects that match the `action`, however, if you want you can specify how many you want through `amount`. - - - ## NPCsJSON.GetFile ```pascal function TMapNPCJSON.GetFile(chunk: TPoint; plane: Integer): TJSONItem; ``` Internal method to return a npcs JSON file associated with the specified `chunk` and `plane`. - - - ## NPCsJSON.GetJSON ```pascal function TMapNPCJSON.GetJSON(chunks: TPointArray; plane: Integer): TJSONItem; ``` Internal method to return all npcs JSON data associated with the specified `chunks` and `plane` merged into a single `TJSONItem`. - - - ## NPCsJSON.Load ```pascal function TMapNPCJSON.Load(regions: array of TRSMapRegion): TJSONItem; ``` Internal method to load all npcs JSON data associated into the `TMapNPCJSON` with the specified `regions` merged into a single `TJSONItem`. - - - ## NPCsJSON.Get ```pascal function TMapNPCJSON.Get(name: String; amount: Integer = 0): TJSONItem; ``` Returns a `TJSONItem` JSON array of a map npcs that matches the specified `name`. By default you get all npcs that match the `name`, however, if you want you can specify how many you want through `amount`. - - - ## NPCsJSON.GetByID ```pascal function TMapNPCJSON.GetByID(id: Integer): TJSONItem; ``` Returns a `TJSONItem` JSON object of a map npcs that matches the specified `id`. - - - ## NPCsJSON.GetByAction ```pascal function TMapNPCJSON.GetByAction(action: String; amount: Integer = 0): TJSONItem; ``` Returns a `TJSONItem` JSON array of a map npcs that has an action that matches the specified `action`. By default you get all npcs that match the `action`, however, if you want you can specify how many you want through `amount`.