GetKeys gets the keys of the object
()
| 274 | |
| 275 | // GetKeys gets the keys of the object |
| 276 | func (bj BinaryJSON) GetKeys() BinaryJSON { |
| 277 | count := bj.GetElemCount() |
| 278 | ret := make([]BinaryJSON, 0, count) |
| 279 | for i := 0; i < count; i++ { |
| 280 | ret = append(ret, CreateBinaryJSON(string(bj.objectGetKey(i)))) |
| 281 | } |
| 282 | return buildBinaryJSONArray(ret) |
| 283 | } |
| 284 | |
| 285 | // GetElemCount gets the count of Object or Array. |
| 286 | func (bj BinaryJSON) GetElemCount() int { |