Parse all json's values 20/237520/8
authorIlho Kim <ilho159.kim@samsung.com>
Wed, 1 Jul 2020 01:20:53 +0000 (10:20 +0900)
committerIlho Kim <ilho159.kim@samsung.com>
Fri, 3 Jul 2020 07:21:01 +0000 (16:21 +0900)
commitdab68a18ce77bbdb9f6b050b6981792202c5bcf8
treea6c7d8397ef059273eb2ed68dfe5572c957c105c
parent8a66e5a7e3a5121c719a92e1af351f876f6c6968
Parse all json's values

{
  "A" : {
    "A" : "a",
    "B" : [
      "a",
      "b",
      "c"
    ],
    "C" : [
      {
        "D" : "d"
      },
      {
        "E" : "e"
      }
    ]
  }
}

Above json file is parsed and saved to bundle like that
Key Value
"A/A" "a"
"A/B" {"a", "b", "c"}
"A/C/0/D"       "d"
"A/C/1/E"       "e"

Change-Id: Ica907252ba3397898b1e22a9ec8afbe92b81cf05
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
src/theme_plugin/theme_parser.cc
src/theme_plugin/theme_parser.h
test/unit_tests/test_samples/test_different_array_element_type.json [new file with mode: 0644]
test/unit_tests/test_samples/test_empty_array.json [new file with mode: 0644]
test/unit_tests/test_samples/test_invalid_json.json [new file with mode: 0644]
test/unit_tests/test_samples/test_multidimensional_array.json [new file with mode: 0644]
test/unit_tests/test_samples/test_theme.json
test/unit_tests/test_theme_parser.cc