Description

This auto instantiate service allows you to handle JSON file natively (without using any web service, third-party tool or component) as described in the issue #10923.

Inheritance hierarchy

n_base
pfc_n_cst_json (pfcappsrv.pbl)
n_cst_json (pfeappsrv.pbl)
ids_repository
d_json_repository (pfcappsrv.pbl)
pfc_n_cst_json_tagattrib (pfcappsrv.pbl)
n_cst_json_tagattrib (pfeappsrv.pbl)

Components Overview - n_cst_json

Instance Variables

Scope Data Type Name Short Description
Protected n_cst_json_tagattrib inv_tag JSON Tags constants Helper class
n_cst_filesrv inv_file PFC FileC Service accessor

Internal Non Visual Objects

Data Type Name Short Description
Datastore ids_repository the JSON repository

Methods

Scope Name Short description
Public of_add_entry Add a new JSON entry in the repository
of_clear Cleat the content of the JSON repository
of_delete_entries Delete JSON repository entries between specified start and end indexes
of_delete_entry Delete a JSON entry from the repository using its corresponding index
of_delete_object Delete all JSON repository's entries that correspond to the specified JSON object's name
of_edit_entry Edit JSON entry corresponding to the specified repository index
of_find_entries Returns all corresponding index of a JSON entries identiified by the specified Object & pair's name values
of_find_entry Returns the first corresponding index of a JSON entry identiified by the specified Object & pair's name values
of_get_entry Store pair contents corresponding to the specified repository index into specified variable
of_get_object Get the content of the specified JSON object
of_get_objects Get the list of objects from the JSON repository ordered by order of appearance
of_get_pair Get the content of the specified JSON object's pair
of_get_value Get the value of the specified JSON pair
of_get_values Get the values of the specified JSON pair of kind ARRAY
of_load Load a specified JSON file using the PFC file service and parse it
of_parse Parse the passed JSON string
of_reset Reset initial JSON repository status to restore content order as just after last parsing issued
of_save Save a specified JSON file using the PFC file service
of_tostring Convert JSON repository into a conform JSON string in raw format without any layout formatting

Events

Name Short description
destructor Memory clean up

Linked objects references

Library Object Name Type Short description
pfcappsrv.pbl d_json_repository Datawindow JSON repository datasource
s_json_attrib Structure JSON repository entry structure

Last edited Nov 3, 2014 at 7:44 PM by domangep, version 21

Comments

domangep Feb 11, 2015 at 9:42 AM 
Hi Georgios,
You are right - I did not follow strictly the PFC Naming Convention : shame on me !
I will correct this ASAP...

Regards,

webgep Jan 2, 2015 at 10:15 AM 
Hi,

Any plans of making fuction names more PFC alike - like AddEntry() , GetEntry() etc ?

Great to see some Development in PFC :)

Regards
Georgios