zoukankan      html  css  js  c++  java
  • .net 和java JSON 模板

    1、.net 中JSON对象格式模板

    //  JSON键值对格式:'key':'value'
     

    public static string FORMAT_KEYVALUE = ""{0}":"{1}"";
    //  JSON键值对格式:'key':'value'

    public static string FORMAT_KEYVALUE2 = ""{0}":{1}";
    //  JSON对象格式:{content}

    public static string FORMAT_JSONOBJECT = "{{{0}}}";
    // JSON数组格式:[items]
    public static string FORMAT_JSONARRARY = "[{0}]";


    2、Java 中JSON对象格式模板

     //  JSON键值对格式:'key':'value'
    public  static final  String FORMAT_KEYVALUE = ""%s":"%s"";
    //  JSON键值对格式:'key':'value'
    public  static final  String FORMAT_KEYVALUE2 = ""%s":%s"; 
    //  JSON对象格式:{content}
    public  static final  String FORMAT_JSONOBJECT = "{%s}"; 
    
    // JSON数组格式:[items]
    public  static final  String FORMAT_JSONARRARY = "[%s]";
  • 相关阅读:
    ES6-Object
    ES6-Iterator
    ES6-Generator
    ES6-fetch
    ES6-Function
    ES6-Array
    ES6-Class
    SQLite使用事务更新—by command
    交款功能代码
    SQLite本地事务处理
  • 原文地址:https://www.cnblogs.com/Dylanblogs/p/4325636.html
Copyright © 2011-2022 走看看