You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
3.5 KiB
JavaScript
1 line
3.5 KiB
JavaScript
1 year ago
|
"use strict";(self.webpackChunkfurion=self.webpackChunkfurion||[]).push([[5630],{8210:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>l,contentTitle:()=>r,default:()=>u,frontMatter:()=>i,metadata:()=>a,toc:()=>c});var s=t(5893),o=t(1151);const i={id:"json",title:"10. JSON \u9759\u6001\u7c7b",sidebar_label:"10. JSON \u9759\u6001\u7c7b"},r=void 0,a={id:"global/json",title:"10. JSON \u9759\u6001\u7c7b",description:"\u4ee5\u4e0b\u5185\u5bb9\u4ec5\u9650 Furion 1.16.0 + \u7248\u672c\u4f7f\u7528\u3002",source:"@site/docs/global/json.mdx",sourceDirName:"global",slug:"/global/json",permalink:"/docs/global/json",draft:!1,unlisted:!1,editUrl:"https://gitee.com/dotnetchina/Furion/tree/v4/handbook/docs/global/json.mdx",tags:[],version:"current",lastUpdatedBy:"MonkSoul",lastUpdatedAt:1651894493,formattedLastUpdatedAt:"May 7, 2022",frontMatter:{id:"json",title:"10. JSON \u9759\u6001\u7c7b",sidebar_label:"10. JSON \u9759\u6001\u7c7b"},sidebar:"global",previous:{title:"9. MessageCenter \u9759\u6001\u7c7b",permalink:"/docs/global/messagecenter"},next:{title:"11. Scoped \u9759\u6001\u7c7b",permalink:"/docs/global/scoped"}},l={},c=[{value:"10.1 \u83b7\u53d6\u5e8f\u5217\u5316\u63d0\u4f9b\u5668",id:"101-\u83b7\u53d6\u5e8f\u5217\u5316\u63d0\u4f9b\u5668",level:2},{value:"10.2 \u5e8f\u5217\u5316",id:"102-\u5e8f\u5217\u5316",level:2},{value:"10.3 \u53cd\u5e8f\u5217\u5316",id:"103-\u53cd\u5e8f\u5217\u5316",level:2},{value:"10.4 \u83b7\u53d6\u5168\u5c40\u914d\u7f6e",id:"104-\u83b7\u53d6\u5168\u5c40\u914d\u7f6e",level:2}];function d(e){const n={admonition:"admonition",code:"code",h2:"h2",p:"p",pre:"pre",...(0,o.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.admonition,{title:"\u7248\u672c\u8bf4\u660e",type:"important",children:(0,s.jsxs)(n.p,{children:["\u4ee5\u4e0b\u5185\u5bb9\u4ec5\u9650 ",(0,s.jsx)(n.code,{children:"Furion 1.16.0 +"})," \u7248\u672c\u4f7f\u7528\u3002"]})}),"\n",(0,s.jsx)(n.h2,{id:"101-\u83b7\u53d6\u5e8f\u5217\u5316\u63d0\u4f9b\u5668",children:"10.1 \u83b7\u53d6\u5e8f\u5217\u5316\u63d0\u4f9b\u5668"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-cs",metastring:"showLineNumbers ",children:"var serializer = JSON.GetJsonSerializer();\n"})}),"\n",(0,s.jsx)(n.h2,{id:"102-\u5e8f\u5217\u5316",children:"10.2 \u5e8f\u5217\u5316"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-cs",metastring:"showLineNumbers ",children:"var str = JSON.Serialize(obj, [options]);\n"})}),"\n",(0,s.jsx)(n.h2,{id:"103-\u53cd\u5e8f\u5217\u5316",children:"10.3 \u53cd\u5e8f\u5217\u5316"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-cs",metastring:"showLineNumbers ",children:"var obj = JSON.Deserialize<T>(str, [options]);\n"})}),"\n",(0,s.jsx)(n.h2,{id:"104-\u83b7\u53d6\u5168\u5c40\u914d\u7f6e",children:"10.4 \u83b7\u53d6\u5168\u5c40\u914d\u7f6e"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-cs",metastring:"showLineNumbers ",children:"var options = JSON.GetSerializerOptions<TOption>();\n"})})]})}function u(e={}){const{wrapper:n}={...(0,o.a)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(d,{...e})}):d(e)}},1151:(e,n,t)=>{t.d(n,{Z:()=>a,a:()=>r});var s=t(7294);const o={},i=s.createContext(o);function r(e){const n=s.useContext(i);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function a(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:r(e.components),s.createElement(i.Provider,{value:n},e.children)}}}]);
|