Skip to content

Commit 364d7d0

Browse files
committed
Introduce new JSON parser utility
This patch introduces a utility in OPAL based on the 3rd-party project https://github.com/json-parser/json-parser.git The utility provides APIs to read JSON into memory along with getters to retrieve C values. Signed-off-by: Wenduo Wang <wenduwan@amazon.com>
1 parent 8b7e577 commit 364d7d0

File tree

12 files changed

+2118
-23
lines changed

12 files changed

+2118
-23
lines changed

config/opal_config_files.m4

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
# Copyright (c) 2020 The University of Tennessee and The University
55
# of Tennessee Research Foundation. All rights
66
# reserved.
7-
# Copyright (c) 2022 Amazon.com, Inc. or its affiliates. All Rights reserved.
7+
# Copyright (c) 2022-2024 Amazon.com, Inc. or its affiliates.
8+
# All Rights reserved.
89
# $COPYRIGHT$
910
#
1011
# Additional copyrights may follow
@@ -21,6 +22,7 @@ AC_DEFUN([OPAL_CONFIG_FILES],[
2122
opal/include/Makefile
2223
opal/datatype/Makefile
2324
opal/util/Makefile
25+
opal/util/json/Makefile
2426
opal/util/keyval/Makefile
2527
opal/mca/base/Makefile
2628
opal/tools/wrappers/Makefile

opal/util/Makefile.am

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# Copyright (c) 2016 Research Organization for Information Science
1818
# and Technology (RIST). All rights reserved.
1919
# Copyright (c) 2016-2017 IBM Corporation. All rights reserved.
20-
# Copyright (c) 2020 Amazon.com, Inc. or its affiliates.
20+
# Copyright (c) 2020-2024 Amazon.com, Inc. or its affiliates.
2121
# All Rights reserved.
2222
# Copyright (c) 2021 Google, LLC. All rights reserved.
2323
# $COPYRIGHT$
@@ -27,9 +27,13 @@
2727
# $HEADER$
2828
#
2929

30-
SUBDIRS = keyval
30+
SUBDIRS = \
31+
json \
32+
keyval
3133

32-
dist_opaldata_DATA = help-opal-util.txt
34+
dist_opaldata_DATA = \
35+
help-opal-util.txt \
36+
json/help-json.txt
3337

3438
AM_LFLAGS = -Popal_show_help_yy
3539
LEX_OUTPUT_ROOT = lex.opal_show_help_yy
@@ -127,8 +131,10 @@ libopalutil_core_la_SOURCES += timings.c
127131
endif
128132

129133
libopalutil_core_la_LIBADD = \
134+
json/libopalutil_json.la \
130135
keyval/libopalutilkeyval.la
131136
libopalutil_core_la_DEPENDENCIES = \
137+
json/libopalutil_json.la \
132138
keyval/libopalutilkeyval.la
133139

134140
# Conditionally install the header files

0 commit comments

Comments
 (0)