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