go-json-path

go-json-path is a utility library to access JSON based configuration easily. Go language supports JSON format in the standard library. However, I feel that the standard library is not useful to parse any JSON formats [1] [2].

For that reason, I have developed the open source package to access JSON based configuration easily. Using go-json-path, you can get configuration values in the specified JSON file or string by the given path like Path. The example is bellow.

import (
    "config/jpath"
)

config, err := xjson.NewConfig()
if err != nil {
    t.Error(err)
}

err = config.ParseFromFile("/etc/profile.conf")
if err != nil {
    t.Error(err)
}

name, err := config.GetKeyStringByPath("/organizer/name")
if err != nil {
    t.Error(err)
}

age, err := config.GetKeyStringByPath("/organizer/age")
if err != nil {
    t.Error(err)
}

The configuration file format is based on JSON as the following.

#
#  /etc/profile.conf
#

{
    "organizer": {
        "name": "John Smith",
        "age": 33
    }
}

Repository

Documents

Please check the godoc of config/jpath as the following.

godoc -http=:6060

References

163 thoughts on “go-json-path

  1. Pingback: Leandro Farland

  2. Pingback: Cory Chase MILF City

  3. Pingback: MILF City

  4. Pingback: best-domain-broker

  5. Pingback: Assignment Help USA

  6. Pingback: valentine gift

  7. Pingback: personalized wedding gifts

  8. Pingback: valentines gift

  9. Pingback: organic calendula oil

  10. Pingback: Click Here

  11. Pingback: Click Here

  12. Pingback: Click Here

  13. Pingback: Click Here

  14. Pingback: Click Here

  15. Pingback: Click Here

  16. Pingback: Click Here

  17. Pingback: Click Here

  18. Pingback: Click Here

  19. Pingback: Click Here

  20. Pingback: Click Here

  21. Pingback: Click Here

  22. Pingback: Click Here

  23. Pingback: Click Here

  24. Pingback: Click Here

  25. Pingback: Click Here

  26. Pingback: Click Here

  27. Pingback: Click Here

  28. Pingback: Click Here

  29. Pingback: Click Here

  30. Pingback: Click Here

  31. Pingback: Click Here

  32. Pingback: Click Here

  33. Pingback: no code robotics

  34. Pingback: moveit studio

  35. Pingback: Click Here

  36. Pingback: remote control robotics

  37. Pingback: Click Here

  38. Pingback: Click Here

  39. Pingback: Click Here

  40. Pingback: Reputation Defenders

  41. Pingback: Reputation Defenders

  42. Pingback: Click Here

  43. Pingback: Click Here

  44. Pingback: Click Here

  45. Pingback: Click Here

  46. Pingback: Click Here

  47. Pingback: Click Here

  48. Pingback: Click Here

  49. Pingback: Click Here

  50. Pingback: Click Here

  51. Pingback: Click Here

  52. Pingback: Click Here

  53. Pingback: Click Here

  54. Pingback: Click Here

  55. Pingback: Click Here

  56. Pingback: Click Here

  57. Pingback: Click Here

  58. Pingback: grand rapids dentist

  59. Pingback: Click Here

  60. Pingback: Click Here

  61. Pingback: Click Here

  62. Pingback: https://gquery.org/

  63. Pingback: Click Here

  64. Pingback: Click Here

  65. Pingback: 카지노사이트

  66. Pingback: Click Here

  67. Pingback: Click Here

  68. Pingback: Click Here

  69. Pingback: Click Here

  70. Pingback: Click Here

  71. Pingback: Click Here

  72. Pingback: Click Here

  73. Pingback: Referral Code

  74. Pingback: Click Here

  75. Pingback: Click Here

  76. Pingback: Click Here

  77. Pingback: Click Here

  78. Pingback: Click Here

  79. Pingback: Click Here

  80. Pingback: Click Here

  81. Pingback: Click Here

  82. Pingback: Click Here

  83. Pingback: Click Here

  84. Pingback: Click Here

  85. Pingback: 온라인 슬롯 머신

  86. Pingback: 카지노 보너스 및 프로모션

  87. Pingback: 카지노 보너스 및 프로모션

  88. Pingback: best-domain-portfolio

  89. Pingback: domains

  90. Pingback: best cardano stake pool

  91. Pingback: top startup books

  92. Pingback: Google reviews

  93. Pingback: How to start porn

  94. Pingback: reputation defenders

  95. Pingback: 2023 Books

  96. Pingback: cemetery

  97. Pingback: burial

  98. Pingback: family member

  99. Pingback: betfair football pre match trading

  100. Pingback: Chirurgie Tunisie

  101. Pingback: National Chi Nan University

  102. Pingback: Modern amenities

  103. Pingback: متطلبات القبول في ماجستير إدارة الأعمال

  104. Pingback: ماجستير في إدارة الأعمال في FUE

  105. Pingback: vision faculty of economics and political science

  106. Pingback: fue

  107. Pingback: Global Cultures

  108. Pingback: Digital electric balance

  109. Pingback: Research Activities for pharmacy students at future university

  110. Pingback: Technologically advanced equipment

  111. Pingback: Khaled Azazy

  112. Pingback: Required Courses

  113. Pingback: year work for Fall 2020

  114. Pingback: Pharmacognos

  115. Pingback: متطلبات القبول لجامعة المستقبل

  116. Pingback: Bachelor degrees in MIS

  117. Pingback: Application fee for future university

  118. Pingback: العقاقير

  119. Pingback: Summer Courses

  120. Pingback: Pharmacy Practice and Clinical Pharmacy

  121. Pingback: academic advising

  122. Pingback: Student Success

  123. Pingback: Get in Touch with Faculty of Engineering and tecnology

  124. Pingback: التدريب على علاج جذور الأسنان

  125. Pingback: Information Technology Programs in Egypt

  126. Pingback: كلية الحاسبات والمعلومات

  127. Pingback: Welcome Party 2021

  128. Pingback: Global partnerships

  129. Pingback: https://www.kooky.domains/post/key-features-of-web3-domains

  130. Pingback: https://www.kooky.domains/post/the-evolution-of-domains-from-traditional-to-web3

  131. Pingback: كلية التجارة وإدارة الأعمال

  132. Pingback: Finance research

  133. Pingback: MBA in Future university in egypt

  134. Pingback: Politics

  135. Pingback: جامعة المستقبل في مصر

  136. Pingback: Toxicology and Biochemistry

  137. Pingback: Social Activities for pharmacy students at future university

  138. Pingback: FUE

  139. Pingback: Prosthodontics Department

  140. Pingback: teaching and student activities

  141. Pingback: Information Technology Careers

  142. Pingback: attendance

  143. Pingback: Dr. Hani Hassanein

  144. Pingback: best university in egypt

  145. Pingback: best university in egypt

  146. Pingback: برامج الدراسات العليا لطب الأسنان

  147. Pingback: التقديم جامعة المستقبل في مصر

  148. Pingback: Maillot de football

  149. Pingback: Maillot de football

  150. Pingback: Maillot de football

  151. Pingback: Maillot de football

  152. Pingback: Maillot de football

  153. Pingback: Maillot de football

  154. Pingback: Maillot de football

  155. Pingback: Maillot de football

  156. Pingback: Maillot de football

  157. Pingback: Maillot de football

  158. Pingback: Maillot de football

  159. Pingback: Maillot de football

  160. Pingback: Maillot de football

  161. Pingback: SEOSolutionVIP Fiverr

  162. Pingback: SEOSolutionVIP Fiverr

  163. Pingback: SEOSolutionVIP Fiverr