@techreport{shi-model-json-msg-yang-00, number = {draft-shi-model-json-msg-yang-00}, type = {Internet-Draft}, institution = {Internet Engineering Task Force}, publisher = {Internet Engineering Task Force}, note = {Work in Progress}, url = {https://datatracker.ietf.org/doc/draft-shi-model-json-msg-yang/00/}, author = {Xiao Shi and Y. Richard Yang}, title = {{Modeling JSON Messages Using YANG}}, pagetotal = 23, year = 2014, month = oct, day = 24, abstract = {JavaScript Object Notation (JSON) has been a popular choice as the message encoding for many network protocol. Meanwhile, there are broad interests in the networking community to use the YANG data modeling language {[}RFC6020{]} to define data store and protocol messages, so that one can use YANG related tools such as the OpenDayLight Controller. Although YANG itself is XML based, there have been efforts to model JSON content using YANG {[}draft-ietf-netmod-yang-json-01{]} This document explores the conditions under which the messages of a JSON based protocol can have a syntactically equivalent and hence interoperable YANG model. In particular, this document shows that any JSON protocol message with stand-alone non-object JSON values, certain JSON arrays of elements of mixed types, or non-keyword keys in key-value pairs cannot have a syntactically equivalent YANG model. It also applies these conditions to the ALTO and CDNi protocol messages as examples.}, }