@@ -524,7 +524,7 @@ static size_t serialize_string (json_char * buf,
524
524
return buf - orig_buf ;
525
525
}
526
526
527
- size_t json_measure (json_value * value )
527
+ size_t json_measure (const json_value * value )
528
528
{
529
529
return json_measure_ex (value , default_opts );
530
530
}
@@ -534,7 +534,7 @@ size_t json_measure (json_value * value)
534
534
indents += depth; \
535
535
} while(0); \
536
536
537
- size_t json_measure_ex (json_value * value , json_serialize_opts opts )
537
+ size_t json_measure_ex (const json_value * value , json_serialize_opts opts )
538
538
{
539
539
size_t total = 1 ; /* null terminator */
540
540
size_t newlines = 0 ;
@@ -702,7 +702,7 @@ size_t json_measure_ex (json_value * value, json_serialize_opts opts)
702
702
return total ;
703
703
}
704
704
705
- void json_serialize (json_char * buf , json_value * value )
705
+ void json_serialize (json_char * buf , const json_value * value )
706
706
{
707
707
json_serialize_ex (buf , value , default_opts );
708
708
}
@@ -729,7 +729,7 @@ void json_serialize (json_char * buf, json_value * value)
729
729
*buf ++ = (c); \
730
730
} while(0); \
731
731
732
- void json_serialize_ex (json_char * buf , json_value * value , json_serialize_opts opts )
732
+ void json_serialize_ex (json_char * buf , const json_value * value , json_serialize_opts opts )
733
733
{
734
734
json_int_t integer , orig_integer ;
735
735
json_object_entry * entry ;
0 commit comments