PageSourceSearch

https://mockaroo.com/_next/static/chunks/pages/help/json_arrays-2ed132aa016f2a2b.js

js mockaroo.com collected 2026-10-01 10:23:58 UTC 8,464 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8856],{95757:function(e,t,n){"use strict";var r=n(87462),o=n(45987),a=n(67294);n(45697);var i=n(86010),s=n(1591),c=n(22318),l=n(66987),p=a.forwardRef(function(e,t){var n=e.children,s=e.classes,p=e.className,d=e.disableTypography,u=void 0!==d&&d,f=e.inset,m=e.primary,y=e.primaryTypographyProps,h=e.secondary,g=e.secondaryTypographyProps,v=(0,o.Z)(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),b=a.useContext(l.Z).dense,x=null!=m?m:n;null==x||x.type===c.Z||u||(x=a.createElement(c.Z,(0,r.Z)({variant:b?"body2":"body1",className:s.primary,component:"span",display:"block"},y),x));var j=h;return null==j||j.type===c.Z||u||(j=a.createElement(c.Z,(0,r.Z)({variant:"body2",className:s.secondary,color:"textSecondary",display:"block"},g),j)),a.createElement("div",(0,r.Z)({className:(0,i.Z)(s.root,p,b&&s.dense,void 0!==f&&f&&s.inset,x&&j&&s.multiline),ref:t},v),x,j)});t.Z=(0,s.Z)({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(p)},96837:function(e,t,n){"use strict";var r=n(87462),o=n(45987),a=n(67294);n(45697);var i=n(86010),s=n(1591),c=n(93871),l=a.forwardRef(function(e,t){var n=e.classes,s=e.className,l=e.color,p=void 0===l?"default":l,d=e.component,u=e.disableGutters,f=e.disableSticky,m=e.inset,y=(0,o.Z)(e,["classes","className","color","component","disableGutters","disableSticky","inset"]);return a.createElement(void 0===d?"li":d,(0,r.Z)({className:(0,i.Z)(n.root,s,"default"!==p&&n["color".concat((0,c.Z)(p))],void 0!==m&&m&&n.inset,!(void 0!==f&&f)&&n.sticky,!(void 0!==u&&u)&&n.gutters),ref:t},y))});t.Z=(0,s.Z)(function(e){return{root:{boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:e.palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},colorPrimary:{color:e.palette.primary.main},colorInherit:{color:"inherit"},gutters:{paddingLeft:16,paddingRight:16},inset:{paddingLeft:72},sticky:{position:"sticky",top:0,zIndex:1,backgroundColor:"inherit"}}},{name:"MuiListSubheader"})(l)},66081:function(e,t,n){"use strict";var r=n(95318);t.Z=void 0;var o=r(n(67294)),a=(0,r(n(2108)).default)(o.default.createElement("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"}),"Link");t.Z=a},3905:function(e,t,n){"use strict";n.d(t,{Zo:function(){return c},kt:function(){return d}});var r=n(67294);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach(function(t){var r,o;r=e,o=n[t],t in r?Object.defineProperty(r,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[t]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var i=r.createContext({}),s=function(e){var t=r.useContext(i),n=t;return e&&(n="function"==typeof e?e(t):a(a({},t),e)),n},c=function(e){var t=s(e.components);return r.createElement(i.Provider,{value:t},e.children)},l={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},p=r.forwardRef(function(e,t){var n=e.components,o=e.mdxType,i=e.originalType,c=e.parentName,p=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["components","mdxType","originalType","parentName"]),d=s(n),u=d["".concat(c,".").concat(o)]||d[o]||l[o]||i;return n?r.createElement(u,a(a({ref:t},p),{},{components:n}
1)):r.createElement(u,a({ref:t},p))});function d(e,t){var n=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=n.length,i=Array(a);i[0]=p;var s={};for(var c in t)hasOwnProperty.call(t,c)&&(s[c]=t[c]);s.originalType=e,s.mdxType="string"==typeof e?e:o,i[1]=s;for(var l=2;l<a;l++)i[l]=n[l];return r.createElement.apply(null,i)}return r.createElement.apply(null,n)}p.displayName="MDXCreateElement"},57832:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/help/json_arrays",function(){return n(83607)}])},83607:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return c}});var r=n(85893),o=n(5285);n(67294);var a=n(3905);let i={};function s(e){let{components:t,...n}=e;return(0,a.kt)("wrapper",Object.assign({},i,n,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",null,"JSON Arrays"),(0,a.kt)("p",null,'To generate an array of objects, use the "JSON Array" field type. Any subsequent fields whose name begins with the name of the array field followed by a "." will be included as a property in each object in the array.'),(0,a.kt)("p",null,'For example, if you have an JSON Array field named "friends", a field named "friends.firstName", and a field named "friends.lastName", you\'ll get values like:'),(0,a.kt)("code",{style:{display:"block",whiteSpace:"pre-wrap"}},"{\n  friends: [\n    { firstName: 'Joe', lastName: 'Smith' },\n    { firstName: 'Sally', lastName: 'Brown' }\n  ]\n}"),(0,a.kt)("p",null,"You can even nest arrays!"))}function c(){return(0,r.jsx)(o.Z,{children:(0,r.jsx)(s,{})})}s.isMDXComponent=!0},5285:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});var r=n(85893),o=n(41120),a=n(62822),i=n(96837),s=n(22318),c=n(50998),l=n(95757),p=n(17812),d=n(43832),u=n(88105),f=n(3905),m=n(67294),y=n(66081);n(91067);let h=(0,o.Z)(e=>({root:{marginTop:e.spacing(4),position:"relative","& .remark-highlight":{"--background":"rgb(38, 38, 38)"},"& h2, & h3, & h4, & h5":{marginBottom:"1em",marginTop:"2em"},"& h2":{fontSize:"1.65em"},"& h3":{fontSize:"1.5em",fontWeight:"bold"},"& h4":{fontSize:"1.4em",fontWeight:"bold"},"& h1, & p":{marginBottom:"1em"},"& table":{borderCollapse:"collapse"},"& td, & th":{border:"1px solid ".concat(u.Z[700]),padding:e.spacing(1,1.5),textAlign:"left"},"& code":{padding:0},"& ul":{paddingLeft:e.spacing(2),...e.typography.body2}},body:{marginLeft:250,paddingLeft:e.spacing(5)},toc:{position:"fixed",top:0,paddingTop:e.spacing(10.5),width:250,paddingLeft:"0 !important",minHeight:"100vh",borderRight:"1px solid ".concat(e.palette.divider),"& .active-scroll-spy":{color:"yellow"}},tocText:{fontWeight:"normal"},linkIcon:{marginLeft:e.spacing(.5),opacity:.5,"&:hover":{opacity:1}}}));function g(e){let{headings:t}=e,n=h(),o=e=>{window.scrollTo({top:document.getElementById(v(e)).offsetTop,behavior:"smooth"})};return(0,r.jsxs)(a.Z,{className:n.toc,children:[(0,r.jsx)(i.Z,{children:(0,r.jsx)(s.Z,{style:{fontWeight:700},children:"API Endpoints"})}),t.map(e=>(0,r.jsx)(c.Z,{button:!0,onClick:()=>o(e),children:(0,r.jsx)(l.Z,{classes:{primary:n.tocText},children:e})},e))]})}function v(e){return"string"!=typeof e?null:e.replace(/[^A-Za-z0-9]/g,"_")}function b(e){let{children:t,variant:n,...o}=e,a=h(),i=v(t),c=()=>location.href="#".concat(i);return(0,r.jsxs)(s.Z,{...o,gutterBottom:!0,id:i,variant:n,children:[t,"h1"!==n&&(0,r.jsx)(p.Z,{size:"small",className:a.linkIcon,onClick:c,children:(0,r.jsx)(y.Z,{})})]})}function x(e){let{toc:t,...n}=e,o=h(),a=(0,m.useRef)([]),[i,c]=(0,m.useState)(!1),l=(0,m.useMemo)(()=>({h1:e=>(0,r.jsx)(b,{variant:"h1",...e}),h2:e=>(0,r.jsx)(b,{variant:"h2",...e}),h3:e=>(t&&!i&&e.children&&a.current.push(e.children),(0,r.jsx)(b,{variant:"h3",...e})),h4:e=>(0,r.jsx)(b,{variant:"h4",...e}),h5:e=>(0,r.jsx)(b,{variant:"h5",...e}),p:e=>(0,r.jsx)(s.Z,{...e})}),[i]);return(0,m.useEffect)(()=>{c(!0)},[]),(0,r.jsxs)(d.Z,{maxWidth:"xl",className:o.root,children:[t&&(0,r.jsx)(g,{headings:a.current}),(0,r.jsx)("div",{className:t?o.body:"",children:(0,r.jsx)(f.Zo,{components:l,...n})})]})}},91067:function(){}},function(e){e.O(0,[9774,2888,179],function(){return e(e.s=57832)}),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.