Code Monkey home page Code Monkey logo

jsontrace's Introduction

An ActionScript 3 mini library for tracing JSON format strings by using the com.adobe.serialization.json package.

##Easy to Use## Put the swc file in your lib path, and call:

jsonTrace( yourObject )

##Change Spacing## import lin.shinder.utils.JsonFormatter; // the default is one space character JsonFormatter.spaceUnit = "\t";

##Function## public function jsonTrace(rawObj:Object=null, noTrace:Boolean=false, noFormat:Boolean=false):String

  • rawObj : an Object (or Array) you want to check
  • noTrace : false for trace, true for no trace
  • noFormat : false for formatting, true for no formatting

這是個基於 com.adobe.serialization.json 套件的小工具, 用來將物件或陣列做格式化的輸出。

##方便使用## 將 JSONTrace.swc 放到你的 swc 路徑, 以下面的方便呼叫即可:

jsonTrace( yourObject )

##變更格式的空白單位## import lin.shinder.utils.JsonFormatter; // 預設為一個空白字元 JsonFormatter.spaceUnit = "\t";

##功能說明## public function jsonTrace(rawObj:Object=null, noTrace:Boolean=false, noFormat:Boolean=false):String

  • rawObj : 所要查看的物件或陣列
  • noTrace : false 就 trace, true 不做 trace
  • noFormat : false 做格式化, true 不做格式化

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.