kondaurov-json / json_schema

Build your own object schemas. This is like standard json schemas but not only for validation

Github
< d i v c l a s s = " a n n o u n c e i n s t a p a p e r _ b o d y M D " d a t a - p a t h = " R e a d m e . M D " i d = " r e a d m e " > < a r t i c l e c l a s s = " m a r k d o w n - b o d y e n t r y - c o n t e n t " i t e m p r o p = " t e x t " > < p > < a h r e f = " h t t p s : / / t r a v i s - c i . o r g / k o n d a u r o v - j s o n / j s o n _ s c h e m a " t a r g e t = " _ b l a n k " > < i m g s r c = " h t t p s : / / c a m o . g i t h u b u s e r c o n t e n t . c o m / 0 9 9 7 a a 6 c 3 f 5 f 7 3 b e d 8 4 4 7 5 5 1 2 6 f 7 8 6 7 9 1 4 e d 9 2 2 2 / 6 8 7 4 7 4 7 0 7 3 3 a 2 f 2 f 7 4 7 2 6 1 7 6 6 9 7 3 2 d 6 3 6 9 2 e 6 f 7 2 6 7 2 f 6 b 6 f 6 e 6 4 6 1 7 5 7 2 6 f 7 6 2 d 6 a 7 3 6 f 6 e 2 f 6 a 7 3 6 f 6 e 5 f 7 3 6 3 6 8 6 5 6 d 6 1 2 e 7 3 7 6 6 7 3 f 6 2 7 2 6 1 6 e 6 3 6 8 3 d 6 d 6 1 7 3 7 4 6 5 7 2 " a l t = " B u i l d S t a t u s " d a t a - c a n o n i c a l - s r c = " h t t p s : / / t r a v i s - c i . o r g / k o n d a u r o v - j s o n / j s o n _ s c h e m a . s v g ? b r a n c h = m a s t e r " s t y l e = " m a x - w i d t h : 1 0 0 % ; " > < / a > < a h r e f = " h t t p s : / / c o v e r a l l s . i o / g i t h u b / k o n d a u r o v - j s o n / j s o n _ s c h e m a ? b r a n c h = m a s t e r " t a r g e t = " _ b l a n k " > < i m g s r c = " h t t p s : / / c a m o . g i t h u b u s e r c o n t e n t . c o m / 4 d a 3 b e 0 5 7 4 6 3 d 9 b 6 8 7 c 4 1 9 d b 9 0 f f 7 9 4 2 b 0 b 4 c 2 2 f / 6 8 7 4 7 4 7 0 7 3 3 a 2 f 2 f 6 3 6 f 7 6 6 5 7 2 6 1 6 c 6 c 7 3 2 e 6 9 6 f 2 f 7 2 6 5 7 0 6 f 7 3 2 f 6 7 6 9 7 4 6 8 7 5 6 2 2 f 6 b 6 f 6 e 6 4 6 1 7 5 7 2 6 f 7 6 2 d 6 a 7 3 6 f 6 e 2 f 6 a 7 3 6 f 6 e 5 f 7 3 6 3 6 8 6 5 6 d 6 1 2 f 6 2 6 1 6 4 6 7 6 5 2 e 7 3 7 6 6 7 3 f 6 2 7 2 6 1 6 e 6 3 6 8 3 d 6 d 6 1 7 3 7 4 6 5 7 2 " a l t = " C o v e r a g e S t a t u s " d a t a - c a n o n i c a l - s r c = " h t t p s : / / c o v e r a l l s . i o / r e p o s / g i t h u b / k o n d a u r o v - j s o n / j s o n _ s c h e m a / b a d g e . s v g ? b r a n c h = m a s t e r " s t y l e = " m a x - w i d t h : 1 0 0 % ; " > < / a > < / p > < h 2 > < a i d = " u s e r - c o n t e n t - m o t i v a t i o n " c l a s s = " a n c h o r " h r e f = " h t t p s : / / g i t h u b . c o m / k o n d a u r o v - j s o n / j s o n _ s c h e m a # m o t i v a t i o n " a r i a - h i d d e n = " t r u e " t a r g e t = " _ b l a n k " > < s v g a r i a - h i d d e n = " t r u e " c l a s s = " o c t i c o n o c t i c o n - l i n k " h e i g h t = " 1 6 " v e r s i o n = " 1 . 1 " v i e w b o x = " 0 0 1 6 1 6 " w i d t h = " 1 6 " > < p a t h f i l l - r u l e = " e v e n o d d " d = " M 4 9 h 1 v 1 H 4 c - 1 . 5 0 - 3 - 1 . 6 9 - 3 - 3 . 5 S 2 . 5 5 3 4 3 h 4 c 1 . 4 5 0 3 1 . 6 9 3 3 . 5 0 1 . 4 1 - . 9 1 2 . 7 2 - 2 3 . 2 5 V 8 . 5 9 c . 5 8 - . 4 5 1 - 1 . 2 7 1 - 2 . 0 9 C 1 0 5 . 2 2 8 . 9 8 4 8 4 H 4 c - . 9 8 0 - 2 1 . 2 2 - 2 2 . 5 S 3 9 4 9 z m 9 - 3 h - 1 v 1 h 1 c 1 0 2 1 . 2 2 2 2 . 5 S 1 3 . 9 8 1 2 1 3 1 2 H 9 c - . 9 8 0 - 2 - 1 . 2 2 - 2 - 2 . 5 0 - . 8 3 . 4 2 - 1 . 6 4 1 - 2 . 0 9 V 6 . 2 5 c - 1 . 0 9 . 5 3 - 2 1 . 8 4 - 2 3 . 2 5 C 6 1 1 . 3 1 7 . 5 5 1 3 9 1 3 h 4 c 1 . 4 5 0 3 - 1 . 6 9 3 - 3 . 5 S 1 4 . 5 6 1 3 6 z " > < / p a t h > < / s v g > < / a > M o t i v a t i o n < / h 2 > < p > W e h a v e r a w j s o n : < / p > < d i v c l a s s = " h i g h l i g h t h i g h l i g h t - s o u r c e - j s o n " > < p r e > { < s p a n c l a s s = " p l - s " > < s p a n c l a s s = " p l - p d s " > " < / s p a n > m o d e l N a m e < s p a n c l a s s = " p l - p d s " > " < / s p a n > < / s p a n > : < s p a n c l a s s = " p l - s " > < s p a n c l a s s = " p l - p d s " > " < / s p a n > c 3 p o < s p a n c l a s s = " p l - p d s " > " < / s p a n > < / s p a n > , < s p a n c l a s s = " p l - s " > < s p a n c l a s s = " p l - p d s " > " < / s p a n > p r i c e < s p a n c l a s s = " p l - p d s " > " < / s p a n > < / s p a n > : < s p a n c l a s s = " p l - s " > < s p a n c l a s s = " p l - p d s " > " < / s p a n > 5 0 0 < s p a n c l a s s = " p l - p d s " > " < / s p a n > < / s p a n > , < s p a n c l a s s = " p l - s " > < s p a n c l a s s = " p l - p d s " > " < / s p a n > i s _ w o r k i n g < s p a n c l a s s = " p l - p d s " > " < / s p a n > < / s p a n > : < s p a n c l a s s = " p l - s " > < s p a n c l a s s = " p l - p d s " > " < / s p a n > y e s < s p a n c l a s s = " p l - p d s " > " < / s p a n > < / s p a n > , < s p a n c l a s s = " p l - s " > < s p a n c l a s s = " p l - p d s " > " < / s p a n > p r e v i o u s _ p r i c e < s p a n c l a s s = " p l - p d s " > " < / s p a n > < / s p a n > : < s p a n c l a s s = " p l - c 1 " > 2 5 0 < / s p a n > } < / p r e > < / d i v > < p > W e h a v e c a s e c l a s s : < / p > < d i v c l a s s = " h i g h l i g h t h i g h l i g h t - s o u r c e - s c a l a " > < p r e > < s p a n c l a s s = " p l - k " > c a s e < / s p a n > < s p a n c l a s s = " p l - k " > c l a s s < / s p a n > < s p a n c l a s s = " p l - e n " > R o b o t < / s p a n > ( < s p a n c l a s s = " p l - v " > m o d e l < / s p a n > : < s p a n c l a s s = " p l - k " > S t r i n g < / s p a n > , < s p a n c l a s s = " p l - v " > p r i c e < / s p a n > : < s p a n c l a s s = " p l - k " > I n t < / s p a n > , < s p a n c l a s s = " p l - v " > i s W o r k i n g < / s p a n > : < s p a n c l a s s = " p l - k " > B o o l e a n < / s p a n > , < s p a n c l a s s = " p l - v " > p r e v i o u s P r i c e < / s p a n > : < s p a n c l a s s = " p l - e n " > O p t i o n < / s p a n > [ < s p a n c l a s s = " p l - k " > I n t < / s p a n > ] ) < / p r e > < / d i v > < p > W e w a n t t o c a s t i n p u t j s o n a s a n i n s t a n c e o f R o b o t < / p > < p > T h e r e a r e f e w w a y s t o d o t h i s : < / p > < o l > < l i > Y o u c a n c r e a t e r e a d s t h a t a r e c r e a t e d b y p l a y _ j s o n l i b r a r y . Y o u j u s t n e e d t o c r e a t e c o m p a n i o n o b j e c t w i t h i m p l i c i t r e a d s . < / l i > < / o l > < d i v c l a s s = " h i g h l i g h t h i g h l i g h t - s o u r c e - s c a l a " > < p r e > < s p a n c l a s s = " p l - k " > i m p o r t < / s p a n > < s p a n c l a s s = " p l - v " > p l a y . a p i . l i b s . j s o n . < / s p a n > < s p a n c l a s s = " p l - v " > _ < / s p a n > < s p a n c l a s s = " p l - k " > o b j e c t < / s p a n > < s p a n c l a s s = " p l - e n " > R o b o t < / s p a n > { < s p a n c l a s s = " p l - k " > i m p l i c i t < / s p a n > < s p a n c l a s s = " p l - k " > v a l < / s p a n > < s p a n c l a s s = " p l - e n " > r e a d s < / s p a n > < s p a n c l a s s = " p l - k " > : < / s p a n > < s p a n c l a s s = " p l - e n " > R e a d s < / s p a n > [ < s p a n c l a s s = " p l - e n " > R o b o t < / s p a n > ] < s p a n c l a s s = " p l - k " > = < / s p a n > < s p a n c l a s s = " p l - e n " > J s o n < / s p a n > . r e a d s [ < s p a n c l a s s = " p l - e n " > R o b o t < / s p a n > ] } < / p r e > < / d i v > < p > T h i s r e a d s w o n ' t w o r k w i t h o u r r a w j s o n b e c a u s e < / p > < u l > < l i > t h e r e ' s n o m o d e l , i s W o r k i n g , p r e v i o u s P r i c e f i e l d s . < / l i > < l i > " 5 0 0 " i s n ' t a n u m b e r b u t s t r i n g < / l i > < / u l > < o l s t a r t = " 2 " > < l i > Y o u c a n c r e a t e c r e a t e r e a d s w i t h c u s t o m r e a d s : < / l i > < / o l > < d i v c l a s s = " h i g h l i g h t h i g h l i g h t - s o u r c e - s c a l a " > < p r e > < s p a n c l a s s = " p l - k " > i m p o r t < / s p a n > < s p a n c l a s s = " p l - v " > p l a y . a p i . l i b s . j s o n . < / s p a n > < s p a n c l a s s = " p l - v " > _ < / s p a n > < s p a n c l a s s = " p l - k " > i m p o r t < / s p a n > < s p a n c l a s s = " p l - v " > p l a y . a p i . l i b s . f u n c t i o n a l . s y n t a x . < / s p a n > < s p a n c l a s s = " p l - v " > _ < / s p a n > < s p a n c l a s s = " p l - k " > o b j e c t < / s p a n > < s p a n c l a s s = " p l - e n " > R o b o t < / s p a n > { < s p a n c l a s s = " p l - k " > i m p l i c i t < / s p a n > < s p a n c l a s s = " p l - k " > v a l < / s p a n > < s p a n c l a s s = " p l - e n " > r e a d s < / s p a n > < s p a n c l a s s = " p l - k " > = < / s p a n > ( ( _ _ \ < s p a n c l a s s = " p l - s " > < s p a n c l a s s = " p l - p d s " > " < / s p a n > m o d e l < s p a n c l a s s = " p l - p d s " > " < / s p a n > < / s p a n > ) . r e a d [ < s p a n c l a s s = " p l - k " > S t r i n g < / s p a n > ] < s p a n c l a s s = " p l - k " > ~ < / s p a n > ( _ _ \ < s p a n c l a s s = " p l - s " > < s p a n c l a s s = " p l - p d s " > " < / s p a n > p r i c e < s p a n c l a s s = " p l - p d s " > " < / s p a n > < / s p a n > ) . r e a d [ < s p a n c l a s s = " p l - k " > S t r i n g < / s p a n > ] . m a p ( _ . t o I n t ) < s p a n c l a s s = " p l - k " > ~ < / s p a n > ( _ _ \ < s p a n c l a s s = " p l - s " > < s p a n c l a s s = " p l - p d s " > " < / s p a n > i s _ w o r k i n g < s p a n c l a s s = " p l - p d s " > " < / s p a n > < / s p a n > ) . r e a d [ < s p a n c l a s s = " p l - k " > S t r i n g < / s p a n > ] . m a p ( s < s p a n c l a s s = " p l - k " > = & g t ; < / s p a n > s . e q u a l s I g n o r e C a s e ( < s p a n c l a s s = " p l - s " > < s p a n c l a s s = " p l - p d s " > " < / s p a n > y e s < s p a n c l a s s = " p l - p d s " > " < / s p a n > < / s p a n > ) ) < s p a n c l a s s = " p l - k " > ~ < / s p a n > ( _ _ \ < s p a n c l a s s = " p l - s " > < s p a n c l a s s = " p l - p d s " > " < / s p a n > p r e v i o u s _ p r i c e < s p a n c l a s s = " p l - p d s " > " < / s p a n > < / s p a n > ) . r e a d N u l l a b l e [ < s p a n c l a s s = " p l - k " > S t r i n g < / s p a n > ] ) ( < s p a n c l a s s = " p l - e n " > R o b o t < / s p a n > . a p p l y _ ) } < / p r e > < / d i v > < p > T h i s i s t o o m u c h b o i l e r p l a t e c o d e . . . M o r e o v e r y o u m i g h t g e t r u n t i m e e x c e p t i o n i f p r i c e f i e l d c a n ' t b e c a s t t o I n t < / p > < o l s t a r t = " 3 " > < l i > Y o u c a n c r e a t e j s o n s c h e m a , v a l i d a t e j s o n o v e r i t a n d c a s t i t t o R o b o t . B u t t h i s w o n t w o r k w i t h o u r r a w j s o n e i t h e r b e c a u s e o f p r o b l e m s d e s c r i b e d i n 1 < / l i > < / o l > < h 2 > < a i d = " u s e r - c o n t e n t - j s o n _ s c h e m a " c l a s s = " a n c h o r " h r e f = " h t t p s : / / g i t h u b . c o m / k o n d a u r o v - j s o n / j s o n _ s c h e m a # j s o n _ s c h e m a " a r i a - h i d d e n = " t r u e " t a r g e t = " _ b l a n k " > < s v g a r i a - h i d d e n = " t r u e " c l a s s = " o c t i c o n o c t i c o n - l i n k " h e i g h t = " 1 6 " v e r s i o n = " 1 . 1 " v i e w b o x = " 0 0 1 6 1 6 " w i d t h = " 1 6 " > < p a t h f i l l - r u l e = " e v e n o d d " d = " M 4 9 h 1 v 1 H 4 c - 1 . 5 0 - 3 - 1 . 6 9 - 3 - 3 . 5 S 2 . 5 5 3 4 3 h 4 c 1 . 4 5 0 3 1 . 6 9 3 3 . 5 0 1 . 4 1 - . 9 1 2 . 7 2 - 2 3 . 2 5 V 8 . 5 9 c . 5 8 - . 4 5 1 - 1 . 2 7 1 - 2 . 0 9 C 1 0 5 . 2 2 8 . 9 8 4 8 4 H 4 c - . 9 8 0 - 2 1 . 2 2 - 2 2 . 5 S 3 9 4 9 z m 9 - 3 h - 1 v 1 h 1 c 1 0 2 1 . 2 2 2 2 . 5 S 1 3 . 9 8 1 2 1 3 1 2 H 9 c - . 9 8 0 - 2 - 1 . 2 2 - 2 - 2 . 5 0 - . 8 3 . 4 2 - 1 . 6 4 1 - 2 . 0 9 V 6 . 2 5 c - 1 . 0 9 . 5 3 - 2 1 . 8 4 - 2 3 . 2 5 C 6 1 1 . 3 1 7 . 5 5 1 3 9 1 3 h 4 c 1 . 4 5 0 3 - 1 . 6 9 3 - 3 . 5 S 1 4 . 5 6 1 3 6 z " > < / p a t h > < / s v g > < / a > j s o n _ s c h e m a < / h 2 > < p > < s t r o n g > H e r e j s o n s c h e m a c o m e s i n p l a y : < / s t r o n g > < / p > < p > Y o u c a n d e s c r i b e j s o n s c h e m a l i k e t h a t : < / p > < d i v c l a s s = " h i g h l i g h t h i g h l i g h t - s o u r c e - s c a l a " > < p r e > < s p a n c l a s s = " p l - k " > i m p o r t < / s p a n > < s p a n c l a s s = " p l - v " > c o m . g i t h u b . k o n d a u r o v d e v . j s o n _ s c h e m a . t y p e s . A p i . < / s p a n > < s p a n c l a s s = " p l - v " > _ < / s p a n > < s p a n c l a s s = " p l - k " > i m p o r t < / s p a n > < s p a n c l a s s = " p l - v " > c o m . g i t h u b . k o n d a u r o v d e v . j s o n _ s c h e m a . I m p l i c i t s . < / s p a n > < s p a n c l a s s = " p l - v " > _ < / s p a n > < s p a n c l a s s = " p l - k " > o b j e c t < / s p a n > < s p a n c l a s s = " p l - e n " > R o b o t < / s p a n > { < s p a n c l a s s = " p l - k " > v a l < / s p a n > < s p a n c l a s s = " p l - e n " > s c h e m a < / s p a n > < s p a n c l a s s = " p l - k " > : < / s p a n > i S c h e m a W r a p p e r < s p a n c l a s s = " p l - k " > = < / s p a n > o b j V a l ( p r o p ( < s p a n c l a s s = " p l - s " > < s p a n c l a s s = " p l - p d s " > " < / s p a n > m o d e l < s p a n c l a s s = " p l - p d s " > " < / s p a n > < / s p a n > , s t r V a l ( ) ) , p r o p ( < s p a n c l a s s = " p l - s " > < s p a n c l a s s = " p l - p d s " > " < / s p a n > p r i c e < s p a n c l a s s = " p l - p d s " > " < / s p a n > < / s p a n > , n u m V a l ( ) ) , p r o p ( < s p a n c l a s s = " p l - s " > < s p a n c l a s s = " p l - p d s " > " < / s p a n > i s _ w o r k i n g < s p a n c l a s s = " p l - p d s " > " < / s p a n > < / s p a n > , b o o l V a l ( ) , < s p a n c l a s s = " p l - s " > < s p a n c l a s s = " p l - p d s " > " < / s p a n > i s W o r k i n g < s p a n c l a s s = " p l - p d s " > " < / s p a n > < / s p a n > ) , p r o p ( < s p a n c l a s s = " p l - s " > < s p a n c l a s s = " p l - p d s " > " < / s p a n > p r e v i o u s _ p r i c e < s p a n c l a s s = " p l - p d s " > " < / s p a n > < / s p a n > , n u m V a l ( ) , < s p a n c l a s s = " p l - s " > < s p a n c l a s s = " p l - p d s " > " < / s p a n > p r e v i o u s P r i c e < s p a n c l a s s = " p l - p d s " > " < / s p a n > < / s p a n > , r e q u i r e d < s p a n c l a s s = " p l - k " > = < / s p a n > < s p a n c l a s s = " p l - c 1 " > f a l s e < / s p a n > ) ) < s p a n c l a s s = " p l - k " > v a l < / s p a n > < s p a n c l a s s = " p l - e n " > r e a d s < / s p a n > < s p a n c l a s s = " p l - k " > = < / s p a n > s c h e m a . g e t R e a d s B y S c h e m a ( < s p a n c l a s s = " p l - e n " > J s o n < / s p a n > . r e a d s [ < s p a n c l a s s = " p l - e n " > R o b o t < / s p a n > ] ) } < / p r e > < / d i v > < p > O r y o u c a n d e s c r i b e y o u r s c h e m a s i n f i l e a n d p r o v i d e i t v i a a p p l i c a t i o n c o n f i g < / p > < p > a p p l i c a t i o n . c o n f < / p > < p r e l a n g = " h o c o n " > < c o d e > j s o n _ s c h e m a { p r o v i d e r { f r o m D i r { d i r = $ { H O M E } / j s o n _ s c h e m a s } } } < / c o d e > < / p r e > < p > $ { H O M E } / j s o n _ s c h e m a s / a p p . y a m l < / p > < d i v c l a s s = " h i g h l i g h t h i g h l i g h t - s o u r c e - y a m l " > < p r e > < s p a n c l a s s = " p l - e n t " > p u b l i c < / s p a n > : < s p a n c l a s s = " p l - e n t " > o b j < / s p a n > : < s p a n c l a s s = " p l - e n t " > p r o p s < / s p a n > : - < s p a n c l a s s = " p l - s " > { p a t h : m o d e l , t y p e : s t r } < / s p a n > - < s p a n c l a s s = " p l - s " > { p a t h : p r i c e , t y p e : n u m b e r } < / s p a n > - < s p a n c l a s s = " p l - s " > { p a t h : i s _ w o r k i n g , a l i a s : i s W o r k i n g } < / s p a n > - < s p a n c l a s s = " p l - s " > { p a t h : p r e v i o u s _ p r i c e , a l i a s : p r e v i o u s P r i c e } < / s p a n > < / p r e > < / d i v > < p > N o w w e c a n g e t r i d o f b i g s c h e m a i n o u r a p p l i c a t i o n a n d u s e l i n k t o i t < / p > < d i v c l a s s = " h i g h l i g h t h i g h l i g h t - s o u r c e - s c a l a " > < p r e > < s p a n c l a s s = " p l - k " > o b j e c t < / s p a n > < s p a n c l a s s = " p l - e n " > R o b o t < / s p a n > { < s p a n c l a s s = " p l - k " > i m p o r t < / s p a n > < s p a n c l a s s = " p l - v " > c o m . g i t h u b . k o n d a u r o v d e v . j s o n _ s c h e m a . t y p e s . A p i . < / s p a n > < s p a n c l a s s = " p l - v " > _ < / s p a n > < s p a n c l a s s = " p l - k " > i m p o r t < / s p a n > < s p a n c l a s s = " p l - v " > c o m . g i t h u b . k o n d a u r o v d e v . j s o n _ s c h e m a . t y p e s . < / s p a n > < s p a n c l a s s = " p l - v " > S c h e m a P a t h < / s p a n > < s p a n c l a s s = " p l - k " > i m p o r t < / s p a n > < s p a n c l a s s = " p l - v " > c o m . g i t h u b . k o n d a u r o v d e v . j s o n _ s c h e m a . I m p l i c i t s . < / s p a n > < s p a n c l a s s = " p l - v " > _ < / s p a n > < s p a n c l a s s = " p l - k " > o b j e c t < / s p a n > < s p a n c l a s s = " p l - e n " > R o b o t < / s p a n > { < s p a n c l a s s = " p l - k " > v a l < / s p a n > < s p a n c l a s s = " p l - e n " > s c h e m a < / s p a n > < s p a n c l a s s = " p l - k " > : < / s p a n > i S c h e m a W r a p p e r < s p a n c l a s s = " p l - k " > = < / s p a n > < s p a n c l a s s = " p l - e n " > S c h e m a P a t h < / s p a n > ( < s p a n c l a s s = " p l - s " > < s p a n c l a s s = " p l - p d s " > " < / s p a n > a p p < s p a n c l a s s = " p l - p d s " > " < / s p a n > < / s p a n > , < s p a n c l a s s = " p l - s " > < s p a n c l a s s = " p l - p d s " > " < / s p a n > r o b o t < s p a n c l a s s = " p l - p d s " > " < / s p a n > < / s p a n > , n s < s p a n c l a s s = " p l - k " > = < / s p a n > < s p a n c l a s s = " p l - e n " > S o m e < / s p a n > ( < s p a n c l a s s = " p l - s " > < s p a n c l a s s = " p l - p d s " > " < / s p a n > p u b l i c < s p a n c l a s s = " p l - p d s " > " < / s p a n > < / s p a n > ) ) < s p a n c l a s s = " p l - k " > v a l < / s p a n > < s p a n c l a s s = " p l - e n " > r e a d s < / s p a n > < s p a n c l a s s = " p l - k " > = < / s p a n > s c h e m a . g e t R e a d s B y S c h e m a ( < s p a n c l a s s = " p l - e n " > J s o n < / s p a n > . r e a d s [ < s p a n c l a s s = " p l - e n " > R o b o t < / s p a n > ] ) } } < / p r e > < / d i v > < h 2 > < a i d = " u s e r - c o n t e n t - s o m e - t h o u g h t s " c l a s s = " a n c h o r " h r e f = " h t t p s : / / g i t h u b . c o m / k o n d a u r o v - j s o n / j s o n _ s c h e m a # s o m e - t h o u g h t s " a r i a - h i d d e n = " t r u e " t a r g e t = " _ b l a n k " > < s v g a r i a - h i d d e n = " t r u e " c l a s s = " o c t i c o n o c t i c o n - l i n k " h e i g h t = " 1 6 " v e r s i o n = " 1 . 1 " v i e w b o x = " 0 0 1 6 1 6 " w i d t h = " 1 6 " > < p a t h f i l l - r u l e = " e v e n o d d " d = " M 4 9 h 1 v 1 H 4 c - 1 . 5 0 - 3 - 1 . 6 9 - 3 - 3 . 5 S 2 . 5 5 3 4 3 h 4 c 1 . 4 5 0 3 1 . 6 9 3 3 . 5 0 1 . 4 1 - . 9 1 2 . 7 2 - 2 3 . 2 5 V 8 . 5 9 c . 5 8 - . 4 5 1 - 1 . 2 7 1 - 2 . 0 9 C 1 0 5 . 2 2 8 . 9 8 4 8 4 H 4 c - . 9 8 0 - 2 1 . 2 2 - 2 2 . 5 S 3 9 4 9 z m 9 - 3 h - 1 v 1 h 1 c 1 0 2 1 . 2 2 2 2 . 5 S 1 3 . 9 8 1 2 1 3 1 2 H 9 c - . 9 8 0 - 2 - 1 . 2 2 - 2 - 2 . 5 0 - . 8 3 . 4 2 - 1 . 6 4 1 - 2 . 0 9 V 6 . 2 5 c - 1 . 0 9 . 5 3 - 2 1 . 8 4 - 2 3 . 2 5 C 6 1 1 . 3 1 7 . 5 5 1 3 9 1 3 h 4 c 1 . 4 5 0 3 - 1 . 6 9 3 - 3 . 5 S 1 4 . 5 6 1 3 6 z " > < / p a t h > < / s v g > < / a > S o m e t h o u g h t s < / h 2 > < p > T h e r e i s a j s o n s c h e m a s p e c i f i c a t i o n ( < a h r e f = " h t t p : / / j s o n - s c h e m a . o r g / " t a r g e t = " _ b l a n k " > h t t p : / / j s o n - s c h e m a . o r g / < / a > ) < / p > < p > P u r p o s e o f j s o n s c h e m a i s v a l i d a t e j s o n o v e r s c h e m a . I t c a n o n l y < s t r o n g > v a l i d a t e < / s t r o n g > T h i s m e a n s : < / p > < u l > < l i > y o u c a n ' t s p e c i f y d e f a u l t v a l u e s f o r f i e l d s < / l i > < l i > y o u c a n ' t c a s t v a l u e s ( f o r e g . " 1 2 3 " i s s t r i n g a n d y o u c a s t i t t o n u m b e r ) < / l i > < / u l > < p > S o i w a n t a l i t t l e b i t m o r e : v a l i d a t e a n d t r a n s f o r m j s o n w h i l e v a l i d a t i n g . G e t p u r e j s o n f r o m s c h e m a < / p > < / a r t i c l e > < / d i v >